﻿@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>选择分类</title>
    <link href="~/Areas/AdminMrg/Content/adminCss/dialog.css" rel="stylesheet" />
    <script src="~/CommonResource/Js/jquery-1.8.3.min.js"></script>
    <!--弹出层-->
    <script src="~/CommonResource/artDialog/jquery.artDialog.source.js?skin=blue"></script>
    <script src="~/CommonResource/artDialog/plugins/iframeTools.source.js"></script>
    <script type="text/javascript">
        $(function () {
            //art.dialog.data('ReturnParentName', null);
            //art.dialog.data('ReturnParentId', null);

            $("#cancleBtn").click(function () {
                //art.dialog.data('ReturnParentId', null);
                //art.dialog.data('ReturnParentName', null);
                art.dialog.close();
            });

            $("#okBtn").click(function () {
                var name = $("#parentTypeName").val();
                var parentId = $("#parentTypeId").val();
                art.dialog.data('ReturnParentName', name);
                art.dialog.data('ReturnParentId', parentId);
                art.dialog.close();
            });
        });
    </script>
</head>
<body>
    <div class="dialogBox">
        <div class="textBox">
            <div class="title">选择分类：</div>
            <div class="typeListBox">
                @Html.Partial("MProductSelectType")
            </div>
        </div>
        <div class="textBox">
            <div class="title">选择结果：</div>
            <input type="text" id="parentTypeName" readonly="readonly" disabled="disabled" />
            <input type="hidden" id="parentTypeId" />
        </div>
    </div>
    <div class="bottomBtn">
        <a id="okBtn">确认</a>
        <a id="cancleBtn">取消</a>
    </div>
</body>
</html>
